
import request from '@/utils/request';

export function listData(query) {
  return request({
    url: `/good_number/list${query}`,
    method: 'get',
  });
}

export function postCreate(form) {
  return request({
    url: '/good_number/add',
    method: 'post',
    data: form
  });
}

export function putEdit(form) {
  return request({
    url: '/good_number/update',
    method: 'post',
    data: form
  });
}

export function deleteList(query) {
  return request({
    url: '/good_number/delete',
    method: 'post',
    data: query
  });
}
export function getCateList() {
  return request({
    url: '/good_number_cate/list',
    method: 'get',
  });
}

export function deleteData() {
  return Promise.reject(new Error('接口不可用 ！'))
}
